var template = require('art-template')

var tpl = `
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Art-template</title>
</head>
<body>
<p>大家好，我叫：{{name}}</p>
<p>我今年 {{age}} 岁了</p>
<p>我来自 {{province}}</p>
<p>我喜欢: {{each hobbies}} {{ $value }} {{/each}}</p>
</body>
</html>
`
var ret = template.render(tpl,{
    name: 'Rose',
    age: 22,
    province: '北京',
    hobbies: [
        '唱歌',
        '跳舞',
        '打豆豆'
    ]
})

console.log(ret)